package com.cookpan001.init 
{
	import com.cookpan001.ApplicationFacade;
	import com.cookpan001.commands.StartupCommand;
	import com.cookpan001.data.AppConst;
	/**
	 * 在该类中定义所有的command
	 * @author cookpan001
	 */
	public class AppCommandsList 
	{
		private static var INSTANCE:AppCommandsList;
		public function AppCommandsList() 
		{
			
		}
		
		public static function getInstance():AppCommandsList
		{
			if (null == INSTANCE)
			{
				INSTANCE = new AppCommandsList();
			}
			return INSTANCE;
		}
		
		//注册基本的commands
		public function init():void
		{
			ApplicationFacade.getInstance().registerCommand(AppConst.STARTUP, StartupCommand);
			this.initOthers();
		}
		//注册其他commands
		private function initOthers():void
		{
			
		}
	}

}